package cn.net.model;

import java.io.Serializable;

public class CacheDataObject implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * 航班信息
     */
    private ReturnObject returnObject;

    /**
     * 对象操作状态，Add=新增、Update=修改、Delete=删除、Search=相同数据
     */
    private String flag;

    /**
     * 对象DB操作状态，0=已保存到数据库、1=未保存到数据库
     */
    private int dbFlag;

    /**
     * 当前数据更新时间
     */
    private String timeNow;


    public String getTimeNow() {
        return timeNow;
    }

    public void setTimeNow(String timeNow) {
        this.timeNow = timeNow;
    }

    public ReturnObject getReturnObject() {
        return returnObject;
    }

    public void setReturnObject(ReturnObject returnObject) {
        this.returnObject = returnObject;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public int getDbFlag() {
        return dbFlag;
    }

    public void setDbFlag(int dbFlag) {
        this.dbFlag = dbFlag;
    }

    @Override
    public String toString() {
        return "CacheDataObject{" +
                "returnObject=" + returnObject +
                ", flag='" + flag + '\'' +
                ", dbFlag=" + dbFlag +
                ", timeNow='" + timeNow + '\'' +
                '}';
    }
}
